home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / mmpp010.zip / MODEM.H_ / MODEM.bin
Text File  |  1995-01-27  |  3KB  |  111 lines

  1. // CopyRight Maurizio Maccani 1995
  2. #ifndef _TTY
  3. #define _TTY
  4. #define WIN31        // this is a Windows 3.1 application
  5. #define USECOMM      // yes, we need the COMM API
  6.  
  7. #include <windows.h>
  8. #include <commdlg.h>
  9. #include <string.h>
  10.  
  11. #include "resource.h"
  12.  
  13. // constant definitions
  14.  
  15. // Flow control flags
  16.  
  17. #define FC_DTRDSR       0x01
  18. #define FC_RTSCTS       0x02
  19. #define FC_XONXOFF      0x04
  20.  
  21.  
  22. // data structures
  23.  
  24. typedef struct tagTTYINFO
  25. {
  26.    int     idComDev ;
  27.    BYTE    bPort;
  28.    BOOL    fConnected, fXonXoff, fNewLine,
  29.            fUseCNReceive;
  30.    BYTE    bByteSize, bFlowCtrl, bParity, bStopBits ;
  31.    WORD    wBaudRate;
  32.    BYTE    tonePhone;
  33.    char    dialPrefix[20];
  34.    char    dialSuffix[20];
  35.  
  36. } TTYINFO, FAR *NPTTYINFO ;
  37.  
  38. #define ATOM_TTYINFO       0x100
  39. #define MAXLEN_TEMPSTR  81
  40. #define IDD_OK                          1
  41. #define IDD_CANCEL                      2
  42.  
  43.  
  44. #define RXQUEUE         4096
  45. #define TXQUEUE         4096
  46.  
  47. #define ASCII_XON       0x11
  48. #define ASCII_XOFF      0x13
  49.  
  50. #define MAXBLOCK        80
  51.  
  52. #define IDD_PORTCB                      0x220
  53. #define IDD_BAUDCB                      0x221
  54. #define IDD_DATABITSCB                  0x222
  55. #define IDD_PARITYCB                    0x223
  56. #define IDD_STOPBITSCB                  0x224
  57. #define IDD_DTRDSR                      0x225
  58. #define IDD_RTSCTS                      0x226
  59. #define IDD_XONXOFF                     0x227
  60. #define IDD_AUTOWRAP                    0x228
  61. #define IDD_NEWLINE                     0x229
  62. #define IDD_LOCALECHO                   0x22A
  63. #define IDD_FONT                        0x22B
  64. #define IDD_USECNRECEIVE                0x22C
  65. #define IDD_DISPLAYERRORS               0x22D
  66. #define IDS_BYLINE                      0x300
  67. #define IDS_MODE_STANDARD               0x301
  68. #define IDS_MODE_ENHANCED               0x302
  69. #define IDS_MODE_WLO                    0x303
  70. #define IDS_MODE_UNDEF                  0x304
  71. #define IDS_COMPREFIX                   0x310
  72. #define IDS_BAUD110                     0x320
  73. #define IDS_BAUD300                     0x321
  74. #define IDS_BAUD600                     0x322
  75. #define IDS_BAUD1200                    0x323
  76. #define IDS_BAUD2400                    0x324
  77. #define IDS_BAUD4800                    0x325
  78. #define IDS_BAUD9600                    0x326
  79. #define IDS_BAUD14400                   0x327
  80. #define IDS_BAUD19200                   0x328
  81. #define IDS_BAUD38400                   0x329
  82. #define IDS_BAUD56000                   0x32A
  83. #define IDS_BAUD128000                  0x32B
  84. #define IDS_BAUD256000                  0x32C
  85. #define IDS_PARITYNONE                  0x330
  86. #define IDS_PARITYEVEN                  0x331
  87. #define IDS_PARITYODD                   0x332
  88. #define IDS_PARITYMARK                  0x333
  89. #define IDS_PARITYSPACE                 0x334
  90. #define IDS_ONESTOPBIT                  0x340
  91. #define IDS_ONE5STOPBITS                0x341
  92. #define IDS_TWOSTOPBITS                 0x342
  93.  
  94. #define MODEM_PORT                      189
  95.  
  96. // global stuff
  97.  
  98. #define INCOUNTRY         13
  99. #define INTOWN            14
  100. #define ABROAD            15
  101. #define MY_AREA_CODE      10
  102. #define MY_INT_CODE       11
  103. #define MY_COUNTRY_CODE   12
  104. #define AREA_HAS_PREFIX   16
  105. #define MY_AREA_PREFIX    17
  106. #define DIAL              3300
  107. #define INT_PREFIX        4400
  108. #define SET_PARAMETERS    5500
  109.  
  110. #endif
  111.